package com.training.arrays;

import java.util.Arrays;

public class ArraysSortDemo {

	public static void main(String[] args) {
		int[]a = {123,5451,31484,1,21,54,1,3};
		System.out.println("Before");
		print(a);
		
		Arrays.sort(a);
		System.out.println("After");
		print(a);

	}
	public static void print(int[] a) {
		for(int t:a) {
			System.out.print(t+"\t");
		}
		System.out.println();
	}

}
